Debian 9 Stretch
Sponsored Link

FTP Server : Vsftpd
2017/06/26
 
Install Vsftpd to configure FTP server to transfer files.
[1] Install and Configure Vsftpd.
root@www:~#
apt -y install vsftpd
root@www:~#
vi /etc/vsftpd.conf
# line 14: change it if listens Pv4

listen=
YES
# line 22: change it if not listen IPv6

listen_ipv6=
NO
# line 31: uncomment

write_enable=YES
# line 99,100: uncomment ( allow ascii mode transfer )

ascii_upload_enable=YES
ascii_download_enable=YES
# line 122: uncomment ( enable chroot )

chroot_local_user=YES
# line 123: uncomment ( enable chroot list )

chroot_list_enable=YES
# line 125: uncomment ( enable chroot list )

chroot_list_file=/etc/vsftpd.chroot_list
# line 131: uncomment

ls_recurse_enable=YES
# add to the end : specify chroot directory

# if not specified, users' home directory equals FTP home directory

local_root=public_html
# turn off seccomp filter

seccomp_sandbox=NO
root@www:~#
vi /etc/vsftpd.chroot_list
# add users you allow to move over their home directory

debian
root@www:~#
systemctl restart vsftpd

 
Tweet